﻿using System.Linq;
using iHouse.Infrastructure;
using iHouse.Model.Data;

namespace iHouse.Model.Repository.Interface
{
    public interface IBookRepository : IBaseRepository<Book>
    {
        void CreateBook(Book book);

        Book GetBookByID(int id);

        void UpdateBook();

        void DeleteBook(int id);

        int GetBookCountByCategoryAndPage(int categoryID, int page, int pageSize);

        int GetBookCount(int categoryID);
    }
}
